local map  = require "resty.map"

local _M = {}

local mapsession = map:new()

function _M:insert(k,v)
     mapsession.insert(mapsession,k,v)
end

function _M:remove(k)
    mapsession.remove(mapsession,k)
end

function _M:getpair(k)
    return mapsession.getpair(mapsession,k)
end

function _M:clear()
    mapsession.clear(mapsession)
end

function _M:size()
    return mapsession.count
end

function _M:sessionkv()
    return mapsession
end

return _M
